Currently xm list --long only displays info about the last domain. The
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 14 Aug 2005 09:07:56 +0000 (09:07 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 14 Aug 2005 09:07:56 +0000 (09:07 +0000)
attached patch fixes this so it displays info about each domain.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
tools/python/xen/xm/main.py

index d1a7fd4f575df248f78666d3211c4bde776bed8f..e9f3bdb3c54bff43fce6b7f4dbc74aab08744675 100644 (file)
@@ -221,8 +221,9 @@ def xm_list(args):
         domsinfo.append(parse_doms_info(info))
                
     if use_long:
-        # this actually seems like a bad idea, as it just dumps sexp out
-        PrettyPrint.prettyprint(info)
+        for dom in doms:
+            info = server.xend_domain(dom)
+            PrettyPrint.prettyprint(info)
     elif show_vcpus:
         xm_show_vcpus(domsinfo)
     else: